package Demo01;

public class PhoneOne {
    public static void main(String[] args) {
        //根据phone类 创建一个名为one的对象
        //格式：类名称 对象名 = new 类名称();
        Phone  one = new Phone();
        System.out.println(one.brand);//null
        System.out.println(one.price);//0.0
        System.out.println(one.color);//null
        System.out.println("=============");

        one.brand = "苹果";
        one.price = 6799;
        one.color = "黑色";
        System.out.println(one.brand);
        System.out.println(one.price);
        System.out.println(one.color);
        System.out.println("=============");

        one.call("乔布斯");
        one.sendMessage();
    }
}
